package com.sensor.data;

import com.sensor.data.service.SensorDataService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class DataApplication{

    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                SpringApplication.run(DataApplication.class, args);
        SensorDataService sensorDataService = (SensorDataService)
                context.getBean("sensorDataService");
        sensorDataService.startReceive();
    }
}
